<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href='https://cdn.bootcss.com/twitter-bootstrap/3.0.1/css/bootstrap.min.css' rel='stylesheet'>
</head>
<body>
<h3 contenteditable="true">促销商品添加</h3>
<form action="/shangpin_add" method="post">
    <table>
        <tr>
            <th>
                <div class="form-group">
                    商品编码:<input type="text" name="commCode">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    商品条形码:<input type="text" name="commBarCode">
                </div>
            </th>
        </tr>
        <tr>
            <div class="form-group">
                <th>
                    商品名称:<input type="text" name="commName">
                </th>
            </div>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    品牌:
                    <select name="brandId">
                    <#list brandList as brand>
                        <option value="${brand.bid}">${brand.bname}</option>
                    </#list>
                    </select>
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    品类:
                    <select name="commTypeId">
                    <#list commTypes as type>
                        <option value="${type.typeId}">${type.typeName}</option>
                    </#list>
                    </select>
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    进货价:<input type="number" name="jhPrice">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    成本价:<input type="number" name="cbPrice">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    商品容量:<input type="number" name="capacity">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    库存编号:
                    <select name="kunncunId">
                        <#list goodsList as go>
                            <option>${go.gid}</option>
                        </#list>
                    </select>
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    30天销量:<input type="number" name="salesVolume">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    商品规格:<input type="text" name="size">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    重量:<input type="number" name="weight">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    商品体积:<input type="number" name="volume">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    地址:<input type="text" name="address">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    包装单位:<input type="text" name="packge">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    商品描述 :<input type="text" name="des">
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    商品状态:
                    <select name="status">
                        <option value="1">已上架</option>
                        <option value="0">未上架</option>
                    </select>
                </div>
            </th>
        </tr>
        <tr>
            <th>
                <div class="form-group">
                    促销状态:<input type="text" name="cstatus" value="1" readonly>
                </div>
            </th>
        </tr>
         <#list channelList as ch>
        <tr>
            <th>
                <div class="form-group">
                    渠道商家:${ch.cname}:<input type="checkbox" name="ch" value="${ch.channelId}" >
                <#--渠道的售价:<input type="number" name="sj">-->
                <#--渠道的成交价:<input type="number" name="cjj">-->
                </div>
            </th>
        </tr>
         </#list>
        <tr>
            <th>
                <div class="form-group">
                    <input type="submit" value="添加">
                </div>
            </th>
        </tr>
</form>
</table>
</body>
</html>